﻿<div id="post">
<?php foreach($posts as $post ) { ?>
<div id="content">

    <div class="title">
    
        <h2>   
            <a href="post.php?id=<?php echo $post['TitleID'];  ?>"  >
                <?php echo  $counttitle.'.'.$post['Title']; ?>
            </a>
        </h2>
        
         
    </div>
   

</div>



<?php  $counttitle++; } ?> 
 </div> 
 <div id="selectpage">          
 <?php for($i=0;$i< $pageLinksCount;$i++)
{
	$pn = $i+1;
	echo "<a id='selectpagebutton' href='http://lsc/article.php?page=".$pn."'>".$pn."</a>        ";
} ?>
</div>